
export const iscode = (res) => {
    if (res.code === 1) {
        return true;
    } else {
        return false;
    }
}

export const isPositiveInteger = (s) => {
    var re = /^[0-9]+$/;
    return re.test(s)
}

